<template>
    <div>
        <button @click="dialogVisible = true">点击打开 Dialog</button>
        <le-dialog
            title="提示"
            width="30%"
            :visible.sync="dialogVisible"
            :before-close="handleClose">
            <span>这是一段信息</span>
            <span slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
            </span>
        </le-dialog>
    </div>
</template>

<script>
import LeDialog from '@/components/le-dialog.vue'
    export default {
        components: { LeDialog },
        data() {
            return {
                dialogVisible: false
            };
        },
        methods: {
            handleClick() {
                this.visible = true;
            },
            handleClose(done) {
               done()
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>